package visualcbir.cluster;

import visualcbir.Model;
import visualcbir.ModelComposed;
import visualcbir.node.ModelNode;
import visualcbir.node.ViewNode;

/**
 *
 * @author sheila
 */
public class VSCircleCircle extends VSCircle{
     public VSCircleCircle(ModelComposed oModel,  int piNumSubviews){
        super(oModel,piNumSubviews);
    }

    @Override
    public void addView(Model oModelAdded) {
         if(oModelAdded instanceof ModelNode)
            super.addView(new ViewNode((ModelNode)oModelAdded));
         else if(oModelAdded instanceof ModelComposed){
            super.addView(new VSCircle((ModelComposed)oModelAdded,15));
         }
    }
}
